package com.zhku.laosiji.dao;

import com.zhku.laosiji.pojo.Admin;

import java.util.List;

public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    //查询所有用户
    List<Admin> queryAdmin();

    //根据管理员名字查询
    Admin selectByName(String name);

    //模糊查询名字
    List<Admin> selectByNameLike(String search);

}